package com.manage.system.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 云存储配置表
 * </p>
 *
 * @author zhangqing
 * @since 2021-12-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysStorageConfig implements Serializable {


    private Long id;

    /**
     * 存储类型(1:七牛 2:腾讯 3:阿里)
     */
    private String type;

    /**
     * 配置名称
     */
    private String configName;

    /**
     * 配置Code
     */
    private String configCode;

    private Boolean status;

    /**
     * 域名
     */
    private String domain;

    /**
     * 路径前缀
     */
    private String prefix;

    /**
     * 存储桶名称
     */
    private String bucketName;

    @TableField("access_Key")
    private String accessKey;

    private String secretKey;

    /**
     * 终端(阿里云需要)
     */
    private String endPoint;

    /**
     * 地区（腾讯云需要）
     */
    private String region;

    /**
     * 创建人
     */
    private Long createStaff;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    private Long updateStaff;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    private String remark;


    public static final String ID = "id";

    public static final String CONFIG_TYPE = "config_type";

    public static final String CONFIG_CODE = "config_code";

    public static final String TYPE = "type";

    public static final String STATUS = "status";

    public static final String DOMAIN = "domain";

    public static final String PREFIX = "prefix";

    public static final String BUCKET_NAME = "bucket_name";

    public static final String ACCESS_KEY = "access_Key";

    public static final String SECRET_KEY = "secret_key";

    public static final String END_POINT = "end_point";

    public static final String REGION = "region";

    public static final String CREATE_STAFF = "create_staff";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_STAFF = "update_staff";

    public static final String UPDATE_TIME = "update_time";

    public static final String REMARK = "remark";

}
